//
//  YXJTableView.h
//  Piece
//
//  Created by dllo on 16/6/7.
//  Copyright © 2016年 Northeast Dianli University. All rights reserved.
//

#import "ZHBaseView.h"
#import "YXJView.h"
#import "YXJMusicModel.h"
#import "YXJMusicStoryCell.h"
#import "YXJListCell.h"
#import "YXJContentModel.h"
#import "YXJCommentCell.h"
#import "YXJMusicCell.h"
#import "YXJLikeMusicModel.h"
#import "YXJLikeMusicCell.h"


// (1)
@protocol sweipDelegate <NSObject>

- (void)sweipWay;

@end

typedef void(^BLOCK) (NSInteger number, NSInteger pageID);
typedef void(^ClickBlock) ();

@interface YXJTableView : ZHBaseView<UITableViewDelegate, UITableViewDataSource>


// (2)
@property (nonatomic, assign)id<sweipDelegate>delegate;

@property (nonatomic, copy) ClickBlock clickBlock;

@property (nonatomic, copy) BLOCK myBlock;

@property (nonatomic, assign) NSInteger pageNumber;

/** 音乐界面 */
@property (nonatomic, strong) UITableView *tableView;

/** 音乐的头视图 */
@property (nonatomic, strong) UIView *headView;

/** 音乐的播放图片 */
@property (nonatomic, strong) UIImageView *photoImageView;

/** 音乐的信息视图 */
@property (nonatomic, strong) YXJView *contentView;

/** 初始化音乐故事 */
@property (nonatomic, strong) UILabel *musicStoryLabel;

/** 初始化音乐故事按钮 */
@property (nonatomic, strong) UIButton *storyButton;

/** 初始化歌词按钮 */
@property (nonatomic, strong) UIButton *lyricButton;

/** 初始化歌曲信息按钮 */
@property (nonatomic, strong) UIButton *aboutButton;

@property (nonatomic, strong) YXJMusicModel *model;

@property (nonatomic, strong) YXJMusicStoryCell *musicStoryCell;

/** 初始化评论列表 */
@property (nonatomic, strong) YXJListCell *listCell;

@property (nonatomic, strong) YXJContentModel *contentModel;

@property (nonatomic, strong) YXJCommentCell *commentCell;

@property (nonatomic, strong) NSMutableArray *contentDataSource;

/** 初始化相似歌曲 */
@property (nonatomic, strong) YXJLikeMusicCell *likeMusiCell;

@property (nonatomic, strong) YXJMusicCell *musicCell;

@property (nonatomic, strong) YXJLikeMusicModel *likeMusicModel;

@property (nonatomic, strong) NSMutableArray *likeMusicDataSource;

/** 点击区分cell的属性 */
@property (nonatomic, assign) NSInteger whichPage;

@end









